package com.sxit.tdf.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 橙子高
 * @since 2022-02-23
 */
@TableName("tb_file_path")
@Schema(name = "FilePath对象", description = "")
public class FilePath implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @Schema(description = "路径名称  例如 学生jx")
  private String pathName;

  @Schema(description = "创建时间")
  private LocalDateTime createTime;

  @Schema(description = " 父类的Id")
  private Integer parent;

  @Schema(description = "路径的代号 例如 student/")
  private String pathCode;

  @Schema(description = "筒序号")
  private Integer bucketId;

  @Schema(description = "子集")
  private String children;

  public String getChildren() {
    return children;
  }

  public void setChildren(String children) {
    this.children = children;
  }

  public Integer getBucketId() {
    return bucketId;
  }

  public void setBucketId(Integer bucketId) {
    this.bucketId = bucketId;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getPathName() {
    return pathName;
  }

  public void setPathName(String pathName) {
    this.pathName = pathName;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public Integer getParent() {
    return parent;
  }

  public void setParent(Integer parent) {
    this.parent = parent;
  }

  public String getPathCode() {
    return pathCode;
  }

  public void setPathCode(String pathCode) {
    this.pathCode = pathCode;
  }

  @Override
  public String toString() {
    return "FilePath{"
        + "id="
        + id
        + ", pathName="
        + pathName
        + ", createTime="
        + createTime
        + ", parent="
        + parent
        + ", pathCode="
        + pathCode
        + "}";
  }
}
